<?php
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
namespace api\v1\controller;

use api\v1\model\XmglZzjgModel;
use think\facade\Db;
use think\Validate;
use cmf\controller\RestBaseController;
use api\v1\model\XmglZzjgUserModel;

class ZzjgController extends RestBaseController
{
    /**
     * 显示资源列表
     */
    public function index()
    {
        $param = $this->request->param();

        $pageNumber = $this->request->param('pageNumber', 1);
        $pageSize = $this->request->param('pageSize', 20);

        $xzm = new XmglZzjgModel();

        $res = $xzm->searchList($param,"*",$pageNumber,$pageSize);
        $this->success('ok',$res);
    }

    /**
     * 保存新建的资源
     */
    public function save()
    {
    }

    /**
     * 显示指定的资源
     *
     * @param  int $id
     */
    public function read($id)
    {

    }

    /**
     * 保存更新的资源
     *
     * @param  int $id
     */
    public function update($id)
    {
    }

    /**
     * 删除指定资源
     *
     * @param  int $id
     */
    public function delete($id)
    {
    }
}
